
@echo off
cls

set THIS_BAT_FILE=%0
set LOGGER=..\..\..\utilities\cmdlog.exe

if not exist %LOGGER% set STDOUT_REDIRECTED=yes

if not "%STDOUT_REDIRECTED%" == "yes" (
    set STDOUT_REDIRECTED=yes
    cmd.exe /c %THIS_BAT_FILE% %* 2>&1 | %LOGGER% 1build.log
    exit/b
) 

set SOURCE_DIRECTORY=%~dp0
set compiler=..\..\..\service\script\make-mingw.bat
   
call %compiler% "Debug"   "32" "build" %SOURCE_DIRECTORY%
call %compiler% "Release" "32" "build" %SOURCE_DIRECTORY%

rem call %compiler% "Debug"   "64" "build" %SOURCE_DIRECTORY%
rem call %compiler% "Release" "64" "build" %SOURCE_DIRECTORY%
